.class public Les/zy;
.super Ljava/lang/Object;
.source "ExtraEditMenuView.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Z

.field private c:Les/kz;

.field private d:Landroid/widget/LinearLayout;

.field private e:Landroid/graphics/drawable/Drawable;

.field private f:Lcom/estrongs/android/ui/theme/b;

.field private g:Lcom/estrongs/android/pop/esclasses/ESScrollView;

.field private h:Landroid/widget/LinearLayout;

.field i:Z

.field private j:Landroid/view/View;

.field private k:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/zy;->i:Z

    .line 3
    iput-object p1, p0, Les/zy;->a:Landroid/content/Context;

    .line 4
    iput-boolean p2, p0, Les/zy;->b:Z

    .line 5
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const p2, 0x7f0c0161

    const/4 v0, 0x0

    invoke-virtual {p1, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    iput-object p1, p0, Les/zy;->d:Landroid/widget/LinearLayout;

    .line 6
    invoke-direct {p0}, Les/zy;->d()V

    return-void
.end method

.method static synthetic a(Les/zy;)Landroid/view/View;
    .locals 0

    .line 1
    iget-object p0, p0, Les/zy;->j:Landroid/view/View;

    return-object p0
.end method

.method static synthetic b(Les/zy;)Landroid/view/View;
    .locals 0

    .line 1
    iget-object p0, p0, Les/zy;->k:Landroid/view/View;

    return-object p0
.end method

.method static synthetic c(Les/zy;)Lcom/estrongs/android/pop/esclasses/ESScrollView;
    .locals 0

    .line 1
    iget-object p0, p0, Les/zy;->g:Lcom/estrongs/android/pop/esclasses/ESScrollView;

    return-object p0
.end method

.method private d()V
    .locals 3

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    iput-object v0, p0, Les/zy;->f:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f080996

    .line 2
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Les/zy;->e:Landroid/graphics/drawable/Drawable;

    .line 3
    new-instance v0, Les/cz;

    iget-object v1, p0, Les/zy;->a:Landroid/content/Context;

    iget-boolean v2, p0, Les/zy;->b:Z

    invoke-direct {v0, v1, v2}, Les/cz;-><init>(Landroid/content/Context;Z)V

    iput-object v0, p0, Les/zy;->c:Les/kz;

    .line 4
    iget-object v0, p0, Les/zy;->d:Landroid/widget/LinearLayout;

    const v1, 0x7f09040b

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/esclasses/ESScrollView;

    iput-object v0, p0, Les/zy;->g:Lcom/estrongs/android/pop/esclasses/ESScrollView;

    .line 5
    iget-object v0, p0, Les/zy;->d:Landroid/widget/LinearLayout;

    const v1, 0x7f090901

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Les/zy;->j:Landroid/view/View;

    .line 6
    iget-object v0, p0, Les/zy;->d:Landroid/widget/LinearLayout;

    const v1, 0x7f090900

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Les/zy;->k:Landroid/view/View;

    .line 7
    iget-object v0, p0, Les/zy;->g:Lcom/estrongs/android/pop/esclasses/ESScrollView;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/ESScrollView;->getView()V

    .line 8
    iget-object v0, p0, Les/zy;->g:Lcom/estrongs/android/pop/esclasses/ESScrollView;

    new-instance v1, Les/zy$a;

    invoke-direct {v1, p0}, Les/zy$a;-><init>(Les/zy;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/esclasses/ESScrollView;->setOnScrollListener(Lcom/estrongs/android/pop/esclasses/ESScrollView$d;)V

    .line 9
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x2

    invoke-direct {v0, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 10
    iget-object v1, p0, Les/zy;->d:Landroid/widget/LinearLayout;

    const v2, 0x7f09040a

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Les/zy;->h:Landroid/widget/LinearLayout;

    if-eqz v1, :cond_0

    .line 11
    iget-object v2, p0, Les/zy;->c:Les/kz;

    invoke-virtual {v2}, Les/my;->e()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 12
    :cond_0
    iget-object v1, p0, Les/zy;->d:Landroid/widget/LinearLayout;

    iget-object v2, p0, Les/zy;->c:Les/kz;

    invoke-virtual {v2}, Les/my;->e()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :goto_0
    return-void
.end method


# virtual methods
.method public a()Les/kz;
    .locals 1

    .line 7
    iget-object v0, p0, Les/zy;->c:Les/kz;

    return-object v0
.end method

.method public a(Landroid/view/animation/Animation;)V
    .locals 1

    .line 2
    iget-object p1, p0, Les/zy;->h:Landroid/widget/LinearLayout;

    invoke-virtual {p1}, Landroid/widget/LinearLayout;->getMeasuredHeight()I

    move-result p1

    iget-object v0, p0, Les/zy;->g:Lcom/estrongs/android/pop/esclasses/ESScrollView;

    invoke-virtual {v0}, Landroid/widget/ScrollView;->getHeight()I

    move-result v0

    sub-int/2addr p1, v0

    const/4 v0, 0x0

    if-lez p1, :cond_0

    const/4 p1, 0x1

    .line 3
    iput-boolean p1, p0, Les/zy;->i:Z

    goto :goto_0

    .line 4
    :cond_0
    iput-boolean v0, p0, Les/zy;->i:Z

    .line 5
    :goto_0
    iget-boolean p1, p0, Les/zy;->i:Z

    if-eqz p1, :cond_1

    .line 6
    iget-object p1, p0, Les/zy;->j:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    return-void
.end method

.method public b()Landroid/view/View;
    .locals 1

    .line 2
    iget-object v0, p0, Les/zy;->d:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method public c()V
    .locals 3

    .line 2
    iget-object v0, p0, Les/zy;->d:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Les/zy;->g:Lcom/estrongs/android/pop/esclasses/ESScrollView;

    iget-object v2, p0, Les/zy;->h:Landroid/widget/LinearLayout;

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/esclasses/ESScrollView;->a(Landroid/view/View;Landroid/view/View;)V

    .line 4
    iget-object v0, p0, Les/zy;->j:Landroid/view/View;

    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 5
    iget-object v0, p0, Les/zy;->k:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 6
    iput-boolean v1, p0, Les/zy;->i:Z

    return-void
.end method
